package com.my12306.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my12306.common.model.vo.PageVo;
import com.my12306.common.util.PageUtils;
import com.my12306.common.util.response.ResponseData;
import com.my12306.train.model.entity.DecreaseEntity;
import com.my12306.train.model.vo.DecreaseVO;

import java.util.List;

/**
 * 递远递减率信息
 *
 * @author ËÕÄÁÏ¦
 */
public interface DecreaseService extends IService<DecreaseEntity> {
//    PageUtils find(DecreaseVO decreaseVO, long page, long size);

    /**
     * 分页查询递远递减率信息
     * @param pageVo
     * @return
     */
    PageUtils queryTicketDecreaseByPage(PageVo pageVo);

    /**
     * 根据id 递远递减率信息
     * @param id
     * @return
     */
    DecreaseVO queryTicketDecreaseById(Long id);

    /**
     * 批量删除
     * @param ids
     */
    void removeTicketDecreaseByIds(List<Long> ids);

    /**
     * 修改区段
     * @param decrease
     */
    ResponseData updateTicketDecreaseById(DecreaseEntity decrease);

    /**
     * 添加 递远递减率
     * @param decrease
     * @return
     */
    ResponseData saveTicketDecrease(DecreaseEntity decrease);

    /**
     * 请求表单需要的参数
     * @return
     */
    ResponseData queryTicketDecreaseParams();

    List<DecreaseEntity> queryAllDecreaseById(Long id);
}

